import React, { Component } from 'react'
import {Redirect, Route} from 'react-router';

export default class AuthRequiredRoute extends Component {
    componentDidMount(){
    }
    render() {
        const { component: Component, ...rest } = this.props;
        // return (
        //     <Route {...rest} component={Component}/>
        // )
        return (
            <Route {...rest} render={props => {
                return <Component {...props} />
            }}/>
        )
    }
}